<template>
  <!-- 布局 -->
  <div class="common-layout" style="height: 100%;">
    <el-container style="height: 100%;">
      <el-header
        style="background-color: #545c64; text-align: center; font-size: 30px; color:aliceblue;">智慧畜牧育种管理平台</el-header>
      <el-container style="height: 100%;">
        <el-aside width="200px" style="background-color: #545c64;">
          <el-menu active-text-color="#ffd04b" background-color="#545c64" class="el-menu-vertical-demo" default-active="2"
            text-color="#fff">
            <!-- 登录信息 -->
            <el-menu-item index="1" style="background-color: rgb(107, 8, 8);">
              <el-icon><icon-menu /></el-icon>
              <span @click="router.push({ name: 'Login' })">退出登录</span>
            </el-menu-item>
            <!-- 企业管理信息 -->
            <el-sub-menu index="2">
              <template #title>
                <el-icon>
                  <location />
                </el-icon>
                <span>企业管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="2-1" @click="router.push({ name: 'Unit' })">企业管理-添加</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-menu-item index="2-2" @click="router.push({ name: 'UnitList' })">企业管理-显示</el-menu-item>
              </el-menu-item-group>
            </el-sub-menu>
             <!-- 期初管理信息 -->
             <el-sub-menu index="3">
              <template #title>
                <el-icon>
                  <location />
                </el-icon>
                <span>部门管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="3-1" @click="router.push('/Department')">部门管理-添加</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-menu-item index="3-2" @click="router.push({ name: 'DepartmentList' })">部门管理-显示</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-menu-item index="3-3" @click="router.push('/SheepFarmList')">羊场设置</el-menu-item>
              </el-menu-item-group>
            </el-sub-menu>
            <!-- 部门管理信息 -->
            <el-sub-menu index="4">
              <template #title>
                <el-icon>
                  <location />
                </el-icon>
                <span>期初管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="4-1" @click="router.push('/MalePeriodicList')">种公期初</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-menu-item index="4-2" @click="router.push('/MalePeriodicAddView')">种公期初-新增</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-menu-item index="4-3" @click="router.push('/FemalePeriodicList')">种母期初</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-menu-item index="4-4" @click="router.push('/FemalePeriodicAddView')">种母期初-新增</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-menu-item index="4-5" @click="router.push('/ProgenyPeriodicList')">后裔期初</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-menu-item index="4-6" @click="router.push('/ProgenyPeriodicAddView')">后裔期初-新增</el-menu-item>
              </el-menu-item-group>
            </el-sub-menu>
            <!-- 生产管理 -->
            <el-sub-menu index="5">
              <template #title>
                <el-icon>
                  <location />
                </el-icon>
                <span>生产管理</span>
              </template>
              <el-menu-item-group>
                <el-sub-menu index="5-1">
                  <template #title>羊只档案</template>
                  <el-menu-item index="5-1-1" @click="router.push('/SheepFileListView')">羊只档案列表</el-menu-item>
                  <el-menu-item index="5-1-2">羊只档案详情</el-menu-item>
                  <el-menu-item index="5-1-3" @click="router.push('/SheepFileAddView')">种羊档案-新增</el-menu-item>
                  
                  <el-menu-item index="5-1-4" @click="router.push('/ProgenyFileAddView')">后裔档案-新增</el-menu-item>
                </el-sub-menu>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-sub-menu index="5-2">
                  <template #title>羊只转舍</template>
                  <el-menu-item index="5-2-1">羊只转舍-新增</el-menu-item>
                  <el-menu-item index="5-2-2">羊只转舍-显示</el-menu-item>
                </el-sub-menu>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-sub-menu index="5-3">
                  <template #title>种母配种</template>
                  <el-menu-item index="5-3-1">种母配种-新增</el-menu-item>
                  <el-menu-item index="5-3-2"
                    @click="router.push({ name: 'SheepHybridizationSelect' })">种母配种-显示</el-menu-item>
                </el-sub-menu>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-sub-menu index="5-4">
                  <template #title>种母妊检</template>
                  <el-menu-item index="5-4-1">种母妊检-新增</el-menu-item>
                  <el-menu-item index="5-4-2"
                    @click="router.push({ name: 'SheepPregnancySelect' })">种母妊检-显示</el-menu-item>
                </el-sub-menu>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-sub-menu index="5-5">
                  <template #title>种母分娩</template>
                  <el-menu-item index="5-5-1">种母分娩-新增</el-menu-item>
                  <el-menu-item index="5-5-2"
                    @click="router.push({ name: 'SheepChildbirthSelect' })">种母分娩-显示</el-menu-item>
                </el-sub-menu>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-sub-menu index="5-6">
                  <template #title>种母断奶</template>
                  <el-menu-item index="5-6-1">种母断奶-新增</el-menu-item>
                  <el-menu-item index="5-6-2" @click="router.push({ name: 'SheepWeaningSelect' })">种母断奶-显示</el-menu-item>
                </el-sub-menu>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-sub-menu index="5-7">
                  <template #title>种母历史记录</template>
                  <el-menu-item index="5-7-1">种母历史记录-新增</el-menu-item>
                  <el-menu-item index="5-7-2"
                    @click="router.push({ name: 'SheepHistorySelect' })">种母历史记录-显示</el-menu-item>
                </el-sub-menu>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-sub-menu index="5-8">
                  <template #title>羊羔断奶</template>
                  <el-menu-item index="5-8-1">羊羔断奶-新增</el-menu-item>
                  <el-menu-item index="5-8-2">羊羔断奶-显示</el-menu-item>
                </el-sub-menu>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-sub-menu index="5-9">
                  <template #title>后裔转种</template>
                  <el-menu-item index="5-9-1">后裔转种-新增</el-menu-item>
                  <el-menu-item index="5-9-2">后裔转种-显示</el-menu-item>
                </el-sub-menu>
              </el-menu-item-group>
            </el-sub-menu>
          </el-menu>
        </el-aside>
        <el-main>
          <RouterView />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter();
</script>
<style scoped></style>



